<script setup>
import {ref,onMounted} from "vue";
import {getSystemByCode} from "@/api/basal.js";
import {ResultEnums} from "@/enums/ResultStatusEnums.js";
const footer = ref('');
onMounted(()=>{
  getSystemByCode(import.meta.env.VITE_SYSTEM_CODE).then(result => {
    footer.value = result.code === ResultEnums.SUCCESS ? result.data.systemFooter : system.value;
  })
})
</script>
<template>
  <footer class="app-footer">
    <div class="container text-center py-3" v-html="footer">
    </div>
  </footer>
</template>